#ifndef __MODBUS_H__
#define __MODBUS_H__

#include "includes.h"
extern uint16_t  LoseCHGTime;
extern uint8_t  SettimeFlag  ;
extern uint32_t  SettimeValue  ;
extern uint16_t DownFlagValue;
uint16_t mb_crc16(uint8_t* DataBuff,uint32_t len);

uint8_t ModBusReprocess(uint8_t cmd,uint16_t Addr, uint8_t len);
uint8_t ModBusWrprocess(uint8_t cmd,uint16_t Addr, uint8_t len);
void HLLogSave(uint16_t u16data);


#endif 

